package com.example.restaurantfinder;



import com.example.restaurantfinder.maps.RestaurantMapFragment;

import android.os.Bundle;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.view.Menu;

public class TabletMainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.restaurant_finder_main);
		
		if(findViewById(R.id.container) != null){
			RestaurantMapFragment mapFragment = new RestaurantMapFragment();
			FragmentManager fragmentManager = getFragmentManager();
			FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
			fragmentTransaction.add(R.id.container,mapFragment,"Map Fragment").commit();
		}
		
	    
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.tablet_main, menu);
		return true;
	}

}
